package com.chapter.sample.jvm;

public class ByteCodeInterView {

    public static void main(String[] args) {
        ByteCodeInterView byteCodeInterView = new ByteCodeInterView();
        byteCodeInterView.test5();
    }

    public void test1() {
        int i = 10;
        //i ++;
        //++i;
        System.out.println(i);
    }

    public void test2() {
        int i = 10;
        i = i++;
        System.out.println(i);
    }

    public void test3() {
        int i = 2;
        i *= i++;
        System.out.println(i);
    }

    public void test4() {

    }

    public void test5() {
        Integer i1 = 10;
        Integer i2 = 10;
        System.out.println(i1 == i2);

        Integer i3 = 128;
        Integer i4 = 128;
        System.out.println(i3 == i4);
        System.out.println(i3.equals(i4));

        Boolean b1 = true;
        Boolean b2 = true;
        System.out.println(b1 == b2);
    }
}
